<ul class="button">
    <li><a href="javascript:void(0);" class="add">添加应聘职位</a><li>
</ul>

<table class="records">
    <thead>
        <tr>
            <th>选择</th>
            <th>职位(中文)</th>
            <th>职位(英文)</th>
            <th>发布时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tfoot><tr><td colspan="5"></td></tr></tfoot>
    <tbody><tr><td colspan="5" style="text-align: center;">loading...</td></tr></tbody>
</table>

<script type="text/x-jquery-tmpl" id="form-template">
    <form action="/backend/jobs/${action}" method="post">
        <input type="hidden" name="id" value="${id}"/>
        <div class="form-row">
            <label for="position">职位(中文)</label>
            <input type="text" name="position" value="${position}"/>
        </div>
        <div class="form-row">
            <label for="position_en">职位(英文)</label>
            <input type="text" name="position_en" value="${position_en}"/>
        </div>
        <div class="form-row">
            <label for="requirements">要求(中文)</label>
            <textarea name="requirements" style="width:400px;">${requirements}</textarea>
        </div>
        <div class="form-row">
            <label for="requirements_en">要求(英文)</label>
            <textarea name="requirements_en" style="width:400px;">${requirements_en}</textarea>
        </div>
        <div class="form-button">
            <input type="submit" name="submit" value="提交"/>
        </div>
    </form>
</script>

<script type="text/x-jquery-tmpl" id="list-template">
    <tr>
        <td><input type="checkbox" value="${id}" name="id[]"/></td>
        <td>${position}</td>
        <td>${position_en}</td>
        <td>${created_at}</td>
        <td>
            <a href="javascript:void(0);" class="show">查看</a>
            <a href="javascript:void(0);" class="edit">编辑</a>
            <a href="javascript:void(0);" class="delete">删除</a>
        </td>
    </tr>
</script>

<script type="text/x-jquery-tmpl" id="show-template">
    <table class="job-show">
        <tbody>
            <tr class="title">
                <td>职位</td>
                <td>要求</td>
            </tr>
            <tr class="content">
                <td>${position}</td>
                <td>
                    {{html $item.nl2br(requirements)}}
                    <p>
                        <a target="_blank" href="mailto:yxyl@yxyuanlin.com" title="给我们简历">给我们简历</a>
                        <a target="_blank" href="/assets/uploads/recruitment.doc" title="下载简历">下载简历</a>
                    </p>
                </td>
            </tr>
            <tr class="title">
                <td>Position</td>
                <td>Requirements</td>
            </tr>
            <tr class="content">
                <td>${position_en}</td>
                <td>
                    {{html $item.nl2br(requirements_en)}}
                    <p>
                        <a target="_blank" href="mailto:yxyl@yxyuanlin.com" title="给我们简历">给我们简历</a>
                        <a target="_blank" href="/assets/uploads/recruitment.doc" title="下载简历">下载简历</a>
                    </p>
                </td>
            </tr>
        </tbody>
    </table>
</script>